﻿<UserControl x:Class="QuailDashboard.View.Controls.EnvironmentSettingsControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:QuailControls="clr-namespace:QuailDashboard.View.Controls" 
    Width="600" Height="500">
    <Grid x:Name="LayoutRoot" Background="White" Loaded="LayoutRoot_Loaded">
        <Grid.RowDefinitions>
            <RowDefinition Height="40"/>
            <RowDefinition />
        </Grid.RowDefinitions>
        <Border x:Name="borderBorder"
                Grid.Row="0"
                Grid.RowSpan="2"
                CornerRadius="5" 
				Background="White"
                BorderBrush="LightGray"
                BorderThickness="1"
                >
            <Border.Effect>
                <DropShadowEffect />
            </Border.Effect>
        </Border>
        <TextBlock Text="{Binding Caption}" FontSize="18" FontWeight="Bold" Margin="10" Grid.Row="0" />
        <Grid x:Name="ListGrid" Grid.Row="1" Margin="10" >
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition Height="35" x:Name="RowSave" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="75"/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>


            <StackPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right">

                <Button Margin="5,5,0,5" Click="ButtonUpdate_Click" >
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text=" Update " />
                        <Image
                                Stretch="None"
                                Source="{StaticResource IconAccept}"
                                Margin="0,0,5,0"
                                 />
                    </StackPanel>
                </Button>

                <Button Margin="5,5,0,5" Click="ButtonCancel_Click">
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text=" Cancel " />
                        <Image
                                Stretch="None"
                                Source="{StaticResource IconCancel}"
                                Margin="0,0,5,0"
                                 />
                    </StackPanel>
                </Button>
            </StackPanel>
        </Grid>
        <QuailControls:ProcessingModalControl Text="{Binding ProcessingText}"
                    ModalVisibility="{Binding IsProcessing, Converter={StaticResource VisibilityConverter}}" />
    </Grid>

</UserControl>
